package com.example.demo.javatest.thread.tongxin;

/**
 * Created by liujiahao on 2019/3/13.
 */
public class ThreadC extends Thread{
    private Object lock;
    private Service service;
    public ThreadC(Object lock, Service service){
        this.lock=lock;
        this.service=service;
    }
    @Override
    public void run() {
        service.testMethod(lock);
    }
}
